<!DOCTYPE HTML>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用户注册</title>
<script type="text/javascript" src="/Public/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="http://validform.rjboy.cn/Validform/v5.3/Validform_v5.3_min.js"></script>
<script type="text/javascript" src="/Public/bootstrap/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="/Public/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="/theme/default/css/validform.css">
<link rel="stylesheet" href="/Public/css/fb.css">
<include file="./template/default/Public/bsie.html" />
<script type="text/javascript">
function chkMail(obj){
	if($.trim(obj.value)!==""){
		//进行ajax用户名搜索
		$.ajax({
			url:'/index.php',
			data:'s=/Home/User/chkUser/email/'+obj.value,
			dataType:'json',
			type:'GET',
			success:function(data){
				
			}
		});	
	}
}
</script>

</head>

<body>



<div id="signup" class="accounts-form">
  <h2>免费注册 FacesBaby</h2>
  
  

  <form action="/index.php?s=/Home/User/doReg" method="POST" autocomplete="off" class="clearfix" id="auth-form">
    <h3>&nbsp;</h3>
    <div class="all-errors">
        
    </div>
      <div class="control-group">
        <input id="id_email" type="text" placeholder="电子邮件" name="email" maxlength="75" datatype="e" nullmsg="电子邮件不能为空!" errormsg="请输入正确的电子邮件!" onBlur="chkMail(this)">
        
        <span class="Validform_checktip"></span>
      </div>
      <div class="input">
        <input type="password" placeholder="密码" nullmsg="密码不能为空!" errormsg="密码至少6个字符,最多18个字符！" datatype="*6-18" plugin="passwordStrength" class="inputxt" name="pwd" value="">
    </div>
    <div class="input">
    	<input type="password"  placeholder="确认密码" name="repassword" class="inputxt" recheck="pwd"  datatype="*6-18" nullmsg="请确认密码！" errormsg="两次输入的密码不一致！" />
    </div>

    <div class="actions clearfix">
        
            <input type="hidden" name="next" value="/welcome/">
        
        <input type="submit" value="提交注册" id="submit_btn" class="btn btn-green" data-loading-text="提交中..."><span id="msg" style="margin-left:30px;"></span>

    </div>
</form>
</div>

<p class="note">已经拥用FacesBaby账号? <a href="/index.php?s=/Home/User/login">请登录</a></p>

<script type="text/javascript">
$(function(){
	//$(".signup_form").Validform();  //就这一行代码！;
	
	$("#auth-form").Validform({
		tiptype:function(msg,o,cssctl){
			var objtip=$("#msg");
			cssctl(objtip,o.type);
			objtip.text(msg);
		}

	});
	//$('#submit_btn').button();
})
</script>

<include file="./template/default/Public/footer.html" />    
</body>
</html>